/**
 * Copyright (c) 2014 zhenrongbao.com, Inc. All Rights Reserved
 * @author: jiangshuguang
 * @Date  : 14-11-30
 * @Time  : 下午1:40
 * @brief :
 */
exports.sidebar = function(){

    var $widget = $('.widget-sidebar');

    $.get('/user/getusersidebar',function(ret,status){
         var amount = ret.data.wallet.total;
        $widget.find('.wallet .value').text('￥'+mathUtil.formatAmount(amount));

    },'json');

};